Skip to content

docs(js-sdk): document OAuth2 client credentials with optional audience and scopes - #744

Open
cvas22 wants to merge 1 commit into
openfga:mainfrom
cvas22:docs/js-oauth2-scopes
Open

cvas22 wants to merge 1 commit into
openfga:mainfrom
cvas22:docs/js-oauth2-scopes

Conversation

@cvas22

@cvas22 cvas22 commented Nov 5, 2026

Copy link
Copy Markdown

Description

Docs side of openfga/js-sdk#503: the JS SDK's client credentials flow now works with OAuth2 providers other than Auth0. apiAudience becomes optional and a space-separated scopes setting is added. This adds an "OAuth2 Client Credentials" example to README_initializing.mustache for the JS SDK, worded like the Java SDK's README.

Part of #255.

Testing

Docs only. The README in openfga/js-sdk#503 matches the rendered template.

…ce and scopes

Template side of the js-sdk change that makes apiAudience optional and
adds scopes, for openfga#255.

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2210e3b0-b1c4-4e60-a30a-e5b9d921742c
Commits

Reviewing files that changed from the base of the PR and between 14b3a61 and 11ba5a1.

Files selected for processing: 1

  • config/clients/js/template/README_initializing.mustache
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cvas22

cvas22 commented Nov 20, 2026

Copy link
Copy Markdown
Author

@SoulPancake friendly ping, would love a review. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant